<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="btn">点我一下</button>
    <script>
        /*
        至少需要一个对象，才能操作网页，这个对象为document对象
        */
        console.log(document);

        //获取btn对象
        const btn = document.getElementById("btn");
        console.log(btn);

        //修改btn中的文字
        btn.innerText = "Click Me"
    </script>
</body>
</html>